package com.hjm.mall.dao;

import com.hjm.mall.entity.Order;

import java.util.List;

public interface OrderMapper {
    int insert(Order order);
    int delete(int id);
    int update(Order order);
    Order getOrderById(int id);
    List<Order> getOrderByUserIdAndGoodsId(int userId,int goodsId);
    List<Order> getOrderByGoodsId(Order order);
    List<Order> getOrderListByUserId(Long userId);
    List<Order> orderListQuery(Order order);
    List<Order> getOrderListByUserIdAndOrderIds(Long userId, List<Integer> orderIds);
}
